package cn.edu.sdjzu.xg.bysj.security;

import java.io.Serializable;


public class ActorAssRole implements Comparable<ActorAssRole>, Serializable {
	
	private Integer id;
	private Actor actor;
	private Role role;

	public ActorAssRole(Integer id, Actor actor, Role role) {
		this.id = id;
		this.actor = actor;
		this.role = role;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Actor getActor() {
		return actor;
	}

	public void setActor(Actor actor) {
		this.actor = actor;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}


	@Override
	public int compareTo(ActorAssRole o) {
		// TODO Auto-generated method stub
		return this.id-o.id;
	}
	
	
}
